{% extends "content/base.html" %}

{% block title %}Pages{% endblock %}

{% block content %}
    <h2>All Pages</h2>
    <ul class="page-list">
        {% for page in pages %}
            <li>
                <a href="{% url 'page_detail' page.slug %}">{{ page.title }}</a>
                <div class="page-meta">
                    Created: {{ page.created_at|date:"M d, Y" }} | 
                    Updated: {{ page.updated_at|date:"M d, Y" }}
                </div>
            </li>
        {% empty %}
            <li>No pages yet.</li>
        {% endfor %}
    </ul>
{% endblock %}
